package com.shenmazong.servertalkteacher.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shenmazong.pojo.TbTeacher;
import com.shenmazong.vo.TeacherVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 王晓文
 */
@Mapper
@Component("tbTeacherMapper")
public interface TbTeacherMapper extends BaseMapper<TbTeacher> {
    IPage<TeacherVo> getClassByPage(Page<TeacherVo> page, @Param("userId") Integer userId);

    IPage<TeacherVo> getFinishClassByPage(Page<TeacherVo> page, @Param("userId") Integer userId);

    IPage<TeacherVo> getWillClassByPage(Page<TeacherVo> page, @Param("userId") Integer userId);

    IPage<TeacherVo> getPayFeeByPage(Page<TeacherVo> page, Integer userId);
}
